package com.zhehekeji.opsys.api.resp;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;

import com.zhehekeji.opsys.api.common.util.SuperResp;

/**
 * @ClassName GetCategoryListResp
 * @Description TODO
 * @author chenweiliu chenwei.liu@163.com
 * @date 2015-7-7   下午2:02:09
 */
@XmlRootElement
public class GetCategoryListResp extends SuperResp {

	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = -4057859038625058778L;
	
	private Integer recordSize;
	List<CategoryInfo> categoryInfos;

	public Integer getRecordSize() {
		return recordSize;
	}

	public void setRecordSize(Integer recordSize) {
		this.recordSize = recordSize;
	}

	public List<CategoryInfo> getCategoryInfos() {
		return categoryInfos;
	}

	public void setCategoryInfos(List<CategoryInfo> categoryInfos) {
		this.categoryInfos = categoryInfos;
	}

	@Override
	public String toString() {
		return "GetCategoryListResp [recordSize=" + recordSize
				+ ", categoryInfos=" + categoryInfos + ", getResultCode()="
				+ getResultCode() + ", getResultDesc()=" + getResultDesc()
				+ "]";
	}

	public static class CategoryInfo implements Serializable{

		/** 
		* @Fields serialVersionUID : TODO
		*/ 
		private static final long serialVersionUID = 7180915140412907364L;
		
		private String code;
		private String name;
		private String parentCode;
		private String imgAddress;
		private String poster;
		private String thumbnal;
		private String description;
		private Integer sequence;
		private String province;
		//yyyyMMddHHmmss
		private String createTime;
		private Integer status;
		private Long cpCode;
		private String focusPicture;
		private String unfocusPicture;
		private Integer displayFlag;
		private String tags;

		public String getImgAddress() {
			return imgAddress;
		}

		public void setImgAddress(String imgAddress) {
			this.imgAddress = imgAddress;
		}

		public String getCode() {
			return code;
		}
		public void setCode(String code) {
			this.code = code;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public String getParentCode() {
			return parentCode;
		}
		public void setParentCode(String parentCode) {
			this.parentCode = parentCode;
		}
		public String getPoster() {
			return poster;
		}
		public void setPoster(String poster) {
			this.poster = poster;
		}
		public String getThumbnal() {
			return thumbnal;
		}
		public void setThumbnal(String thumbnal) {
			this.thumbnal = thumbnal;
		}
		public String getDescription() {
			return description;
		}
		public void setDescription(String description) {
			this.description = description;
		}
		public Integer getSequence() {
			return sequence;
		}
		public void setSequence(Integer sequence) {
			this.sequence = sequence;
		}

		public String getProvince() {
			return province;
		}

		public void setProvince(String province) {
			this.province = province;
		}

		public String getCreateTime() {
			return createTime;
		}
		public void setCreateTime(String createTime) {
			this.createTime = createTime;
		}
		public Integer getStatus() {
			return status;
		}
		public void setStatus(Integer status) {
			this.status = status;
		}
		public Long getCpCode() {
			return cpCode;
		}
		public void setCpCode(Long cpCode) {
			this.cpCode = cpCode;
		}
		public String getFocusPicture() {
			return focusPicture;
		}
		public void setFocusPicture(String focusPicture) {
			this.focusPicture = focusPicture;
		}
		public String getUnfocusPicture() {
			return unfocusPicture;
		}
		public void setUnfocusPicture(String unfocusPicture) {
			this.unfocusPicture = unfocusPicture;
		}
		public Integer getDisplayFlag() {
			return displayFlag;
		}
		public void setDisplayFlag(Integer displayFlag) {
			this.displayFlag = displayFlag;
		}
		@Override
		public String toString() {
			return "CategoryInfo [code=" + code + ", name=" + name + "]";
		}

		public String getTags() {
			return tags;
		}

		public void setTags(String tags) {
			this.tags = tags;
		}
	}
}
